#! /usr/bin/python3
# codings=utf-8
# @time: 2025/10/13 16:23
# @Author:鹤川

#行为，功能
class JiSuanQi():
    # 属性，基本信息
    name="Jisuanq"
    num=100

    def __init__(self,n):
        self.num=n

    # 行为，功能
    def mySum(self,a,b):
        print(self.num)
        return a+b
    def myJian(self,a,b):
        return a-b
    def myCheng(self,a,b):
        return a*b
    def myChu(self,a,b):
        return a/b

class JiSuanQiNew(JiSuanQi):
    isAi=True
    def AiSum(self,a,b):
        c=a+b
        print(c)
        return c
    def myChu(self,a,b):
        return a/b

#实例化对象
jisuanqi=JiSuanQi(120)
print(jisuanqi.mySum(10, 20))
print(jisuanqi.mySum('test1', 'test2'))
# print(jisuanqi.mySum('test1', 10))
print(jisuanqi.mySum(10, 12.2))
# print(jisuanqi.mySum('test1', 12.2))
print(jisuanqi.mySum(0, 0))
print(jisuanqi.mySum(-1, -1))
print(jisuanqi.mySum(-1, 2))


# jisuanqi2=JiSuanQiNew(True)
# jisuanqi2.AiSum(10, 20)
# jisuanqi2.myChu(10, 20)








